using System;
using Foreglance.MVP.Views.Properties;

namespace Foreglance.MVP.Views.Properties
{
    public class ViewProperty<T> : IViewProperty
    {
        public ViewProperty(string name, string text)
        {
            Name = name;
            Text = text;
        }

        public string Name { get; set; }

        public string Text { get; set; }
        
        public object Value { get; set; }

        public Type Type
        {
            get { return typeof (T); }
        }
    }
}